//
//  TeJiaViewController.m
//  LT
//
//  Created by dllo on 16/5/21.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "TeJiaViewController.h"
#import "TeJiaTableViewCell.h"
@interface TeJiaViewController ()<UITableViewDataSource,UITableViewDelegate>

@property(nonatomic,strong)UITableView *TeJiaTableView;

@end

@implementation TeJiaViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.view.backgroundColor = [UIColor blueColor];
    
    self.TeJiaTableView = [[UITableView alloc]initWithFrame:[[UIScreen mainScreen]bounds] style:UITableViewStylePlain];
    //[self getData];
    self.TeJiaTableView.backgroundColor = [UIColor whiteColor];
    self.TeJiaTableView.delegate = self;
    self.TeJiaTableView.dataSource = self;
    self.TeJiaTableView.separatorStyle = UITableViewCellSeparatorStyleNone;
    [self.view addSubview:self.TeJiaTableView];
    self.navigationController.navigationBar.translucent = YES;
    [self.navigationController setNavigationBarHidden:NO];
    self.navigationItem.hidesBackButton = YES;
    
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc]initWithImage:[UIImage imageNamed:@"goback"] style:UIBarButtonItemStylePlain target:self action:@selector(leftButtonAction)];
    

    
}


//左按钮对应返回方法
-(void)leftButtonAction{
    [self.navigationController dismissViewControllerAnimated:YES  completion:^{
        
        
    }];
    
    
}



//cell点击方法
-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{

    
    
    
}


//俩个必备方法
//cell高度
-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
    return 200;
    
}

//cell数量
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    
    return 20;
    
}

//cell的执行方法
-(TeJiaTableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    
    TeJiaTableViewCell *tejiaCell = [[TeJiaTableViewCell alloc]init];
    
    return tejiaCell;
    
}









- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
